<template>
  <lineChart class="h-full"
    :title="title"
    :legendList="legendList"
    :data="data"
    :dataList="dataList"
    :hightdata="234"
    :color="colors"/>
</template>
<script setup>
import {screeninspect} from '@/api/screen/largeData'
import lineChart from '@/views/large-data-screen/component/public/alarm-trend.vue'

const legendList = ref(['巡检次数'])
const colors = ref(['rgb(253, 188, 82)'])
const title = ref('巡检统计')
const dataList = ref([])
const data = ref(
  [
    {left: '10px', right: '10px', width: '95%', bottom: '20px'},
    {
      height2: '234px'
    }
  ]
)
onMounted(() => {
  getscreeninspect()
})
//获取巡检
const getscreeninspect = () => {
  screeninspect({
    inspectDT: 0,//日常巡检（0-全部  1 日 2周 3 月 4 年））
  }).then(res => {

    dataList.value = res.result.inspectTimes
  })
}
</script>
<style scoped lang="scss"></style>
